package com.ruoyi.web.controller.textbook.vo;

import com.ruoyi.textbook.domain.Textbook;
import lombok.Data;

@Data
public class TextbookData extends Textbook {
    private String url;
    private String category;
    private String subject;

    public TextbookData(Textbook textbook, String url) {
        setId(textbook.getId());
        setName(textbook.getName());
        setType(textbook.getType());
        setCategoryId(textbook.getCategoryId());
        setSubjectId(textbook.getSubjectId());
        setSort(textbook.getSort());
        setCreateTime(textbook.getCreateTime());
        this.url = url;
    }
}
